(function(){BX.namespace("BX.Rest.Configuration.Import");if(!BX.Rest.Configuration.Import){return}function i(){}i.prototype={init:function(i){this.id=i.id;this.signedParameters=i.signedParameters;this.fileMaxSize=i.fileMaxSize;var t=BX(this.id+"-file-upload");BX.bind(t,"change",BX.delegate(function(i){if(t.files.length>0&&t.files[0]["size"]<this.fileMaxSize){this.submitForm(i)}else{BX.UI.Notification.Center.notify({content:BX.message("REST_CONFIGURATION_IMPORT_ERRORS_MAX_FILE_SIZE")})}},this))},submitForm:function(i){i.preventDefault();BX.addClass(BX.findChildByClassName(BX(this.id),"rest-configuration-start-icon-main"),"rest-configuration-start-icon-main-loading");BX.style(BX.findChildByClassName(BX(this.id),"rest-configuration-upload-file"),"display","none");BX.html(BX.findChildByClassName(BX(this.id),"rest-configuration-info"),BX.message("REST_CONFIGURATION_IMPORT_SAVE_FILE_PROCESS"));BX(this.id+"-file-form").submit()}};BX.Rest.Configuration.Import=new i})(window);
//# sourceMappingURL=script.map.js